'use strict'

module.exports = app => {
	const { STRING, INTEGER, DATE } = app.Sequelize
	const Role = app.model.define('role', {
		id: { type: INTEGER, primaryKey: true, autoIncrement: true },
		roleName: {
			type: STRING(30),
			comment: '角色名称',
		},
		createdAt: DATE,
		updatedAt: DATE,
	})
	return Role
}
